function A() {
    this.method1 = function () {
        console.log('alert method1!');
    };
    this.method2 = function () {
        console.log('alert method2!');
    };
    this.method3 = function () {
        console.log('alert method3!');
    };
}